how to calculate forces in equilibrium